package com.yex.service;

import com.baomidou.mybatisplus.service.IService;
import com.yex.base.WalletOper;
import com.yex.common.utils.PageUtils;
import com.yex.entity.WalletEntity;
import com.yex.utils.JsonResultVo;

import java.util.Map;

/**
 * 钱包
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2018-12-26 15:09:15
 */
public interface WalletService extends IService<WalletEntity> {

    PageUtils queryPage(Map<String, Object> params);
    /**
     * 钱包操作
     */
    JsonResultVo updateWallet(WalletOper walletOper);
    /**
     * 查询用户钱包
     */
    WalletEntity selectByUserId(Integer userId);
    /**
     * 互转
     */
    JsonResultVo updateTransferWallet(String mobile, String number, Integer userId);
    /**
     * 添加冻结
     */
    boolean updateAddFrozen(WalletOper walletOper);
}

